import { Router } from "express";
import { getArticles, getArticle, createArticle, deleteArticle } from "../controllers/articleController";
import { authManager } from "../auth/authManager";

const router = Router()

router.get('/', getArticles)
router.get('/:id', getArticle)
router.post('/', authManager, createArticle)
router.delete('/:id', authManager, deleteArticle)

export default router